package com.hnichr.ump.common.ping.vo;

import com.hnichr.ump.common.ping.DictEnum;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class SendResultVo implements Serializable {

    private static final long serialVersionUID = -1L;

    private String code;

    private String msg;

    private List<MobileResultVo> result;

    public SendResultVo(){
        result = new ArrayList<>();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<MobileResultVo> getResult() {
        return result;
    }

    public void setResult(List<MobileResultVo> result) {
        this.result = result;
    }


    public boolean isSuccess(){
        return StringUtils.equals(code, DictEnum.SEND_RESULT.OK.getCode());
    }
}
